package zhenti;

import java.util.Scanner;

/**
 * Created by Yang on 2017/6/21.
 */
public class Baidu_FishingRace2 {
    public static void main(String args[]) {

        Scanner in = new Scanner(System.in);
        String[] s1 = in.nextLine().split(" ");
        int n = Integer.parseInt(s1[0]);
        int m = Integer.parseInt(s1[1]);
        int x = Integer.parseInt(s1[2]);
        int y = Integer.parseInt(s1[3]);
        int t = Integer.parseInt(s1[4]);
        double[][] prob = new double[n][m];
        double allp = 0.0;

        for (int i = 0; i < n; i++) {
            String[] str = in.nextLine().split(" ");
            for (int j = 0; j < m; j++) {
                prob[i][j] = Double.parseDouble(str[j]);
                allp = allp + prob[i][j];
            }
        }
        double p1 = 1 - Math.pow(1 - prob[x - 1][y - 1], t);
        double p2 = 1 - Math.pow(1 - allp / m / n, t);

        if (p1 > p2) {
            System.out.println("cc");
            System.out.println(String.format("%.2f", p1));
        } else if (p1 < p2) {
            System.out.println("ss");
            System.out.println(String.format("%.2f", p2));
        } else {
            System.out.println("equal");
            System.out.println(String.format("%.2f", p1));
        }

    }
}
